home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / softwareupdate / system / amigados / introduction / examples.doc < prev    next >
Text File  |  1996-10-10  |  1KB  |  30 lines

  1. 1  INTRODUCTION - EXAMPLES
  2.  
  3. Example 1
  4.   This short example examines the Dos library and prints the
  5.   current version and revision number.
  6.  
  7. Example 2
  8.   This example demonstrates how to allocate some memory which
  9.   has to be long word aligned. We will allocate a FileInfoBlock
  10.   structure in this example, but the procedure of allocating
  11.   long word aligned memory is the same for all types of
  12.   objects.
  13.  
  14. Example 3
  15.   For experienced users only! This example demonstrates how
  16.   to create a long word aligned BPTR. The actual BPTR (the
  17.   memory used to store the BPTR address in) is long word
  18.   aligned. This is rarely needed since you normally only
  19.   work with addresses to data blocks which have to be long
  20.   word aligned. However, if you ever have to give AmigaDOS
  21.   an actual BPTR (not a BPTR address, but the BPTR itself)
  22.   you need to allocate it as described in this example.
  23.  
  24. Example 4
  25.   This example contains a useful function which converts hard
  26.   to use BSTR (BCPL stings) into normal easy to use C strings.
  27.   This example is not directly runnable and must instead be
  28.   linked together with some other program.
  29.  
  30.